#ifndef BSP_IIC_H
#define BSP_IIC_H


typedef enum 
{
    IIC_OK       = 0,
    IIC_ERROR    = 1,
    IIC_BUSY     = 2,
    IIC_TIMEOUT  = 3
} IIC_STATUS;


void vIIC_Init(void);
IIC_STATUS I2C_Mem_Write(uint32_t I2Cx,u8 device_addr,u8* pBuffer, u8 WriteAddr, u16 NumByteToWrite);
IIC_STATUS I2C_Mem_Read(uint32_t I2Cx,u8 device_addr,u8* pBuffer, u8 readAddr, u16 NumByteToRead);



#endif

